package com.btb.core.schedule;

import lombok.extern.slf4j.Slf4j;

@Slf4j
//@Service
public class FixDelayStrategy implements IDelayStrategy {

	/**
	 * 固定延迟 ms
	 */

	private static final long FIX_DELAY = 10;

	@Override
	public void delay(final boolean delay) {
		try {
			Thread.sleep(FIX_DELAY);
		} catch (final InterruptedException e) {
			log.error("sleep deplay interrupted");
		}
	}

}
